﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Hook.Environmental;
using Microsoft.Xna.Framework.Graphics;
using Hook.Graphics;

namespace Hook.MenuAssets
{
    public class PropEditorScreen : Screen
    {
        public PropEditor PropEditor;

        public PropEditorScreen()
            : base()
        {
            PropEditor = new PropEditor();
        }

        public new void Update(GameTime gt)
        {
            base.Update(gt);

            if(!IsTransIn && !IsTransOut)
            {
                PropEditor.Update(gt);
            }
        }

        public new void Draw(SpriteBatch sb)
        {
            if(!IsTransIn && !IsTransOut)
            {
                PropEditor.Draw(sb);
            }

            base.Draw(sb);
        }

        public void LinkButtons()
        {
            MenuPane MP = new MenuPane();
            ScreenButton sb = new ScreenButton(Vector3.Zero, "BACK", ScreenManager.BackScreen);
            sb.Position = new Vector3(Game1.RESOLUTION.X / 2 - sb.Dimension.X / 2, -Game1.RESOLUTION.Y / 2 + sb.Dimension.Y / 2, 0);
            MP.AddMenuItem(sb);
            Panes.Add(MP);
        }
    }
}
